package models;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.Table;

import play.db.jpa.Model;

@Entity
@Table(name="Resources")
public class Resource extends Model{
	
	public String code;
	
	public String name;
	
	public String path;
	
	public String describes;
	
	public String remark;
	
	public String randomId;
	
	@ManyToMany(cascade=CascadeType.ALL)
	public List<Comment> comments;
	
}
